package tests;

import java.util.LinkedList;
import java.util.concurrent.ConcurrentHashMap;

import bookworm.AdministratorOfAllReviewersNames;
import graph.FacadeToObtainGraph;
import graphicinterface.SystemFunctionalitiesFacade;

public class TestGetReviewersGrades 
{
	public static void main(String args[])
	{
		FacadeToObtainGraph facade = FacadeToObtainGraph.getInstance();
		facade.getGraph();
		ConcurrentHashMap<String, Integer> reviewersNamesAndReviewsWritten = 
				AdministratorOfAllReviewersNames.getInstance().getReviewersNamesAndReviewsWritten();

		LinkedList<String> reviewersNames = new LinkedList<String>();
		
		reviewersNames.add("jaemi");
		
		LinkedList<Integer> grades = SystemFunctionalitiesFacade.getInstance().getAllBookReviewersRatings(reviewersNames);
		for(int i = 0; i < reviewersNames.size(); i++)
		{
			String reviewerName = reviewersNames.get(i);
			int grade = grades.get(i);
			
			System.out.println(reviewerName + "==" + grade);
		}
	}

}
